package com.ruoyi.databases.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.databases.service.CollectionsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("collections")
public class CollectionsController extends BaseController {

    @Resource
    private CollectionsService collectionsService;

    @GetMapping("list")
    public AjaxResult list(){
        return AjaxResult.success(collectionsService.selectList());
    }
}
